package com.heima.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.dtos.ArticleInfoDto;
import com.heima.model.article.pojos.ApArticle;
import com.heima.model.common.dtos.ResponseResult;


public interface ApArticleService extends IService<ApArticle> {

    ResponseResult load(ArticleHomeDto dto);

    ResponseResult loadNew(ArticleHomeDto dto);

    ResponseResult loadMore(ArticleHomeDto dto);

    void generate(Long articleId);

    ResponseResult saveArticle(ArticleDto dto);

    void sendIndexUpdate(ApArticle apArticle, String content);

    //详情页收藏点赞回显
    ResponseResult loadBack(ArticleInfoDto dto);
}